/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-11-15     Eywen       the first version
 */
#ifndef APPLICATIONS_FILES_H_
#define APPLICATIONS_FILES_H_

#include "common.h"
#include <dfs.h>
#include <dfs_file.h>
#include <dfs_private.h>

int get_files_count(const char *pathname);
char *get_cur_dif_file_name(int idx);
int refresh_file_names(const char *pathname);
void list_cur_dir_files(const char *pathname);
int get_file_data(char *file_name, uint8_t *save, int len);
int get_cur_dir_file_cnt(void);
int get_line_gcoode_from_file(const char *file_name, uint8_t *save);

#endif /* APPLICATIONS_FILES_H_ */
